package com.zhong.system.service;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhong.system.domain.SysUserDept;
import com.zhong.system.mapper.SysUserDeptMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class SysUserDeptService extends ServiceImpl<SysUserDeptMapper, SysUserDept> {

    public boolean removeByDeptId(String deptId){
        return remove(Wrappers.<SysUserDept>lambdaQuery().eq(SysUserDept::getDeptId,deptId));
    }
}
